﻿using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace CRM.Models.Email
{
    public class EmailVerify : BaseModel
    {
        [Comment("id")]
        public int Id { get; set; }
        
        [Comment("UserId")]
        public int UserId { get; set; }
        
        [Comment("GroupId")]
        public int GroupId { get; set; }
        
        [Comment("CompanyId")]
        public int CompanyId { get; set; }
        
        [Comment("OemId")]
        public int OemId { get; set; }
        
        [Comment("邮箱")]
        [Column(TypeName = "varchar(50)")]
        public string EmailAddress { get; set; }
        
        [Comment("状态:true有效 false无效")]
        public EmailVerifyState State { get; set; }
        
    }

    public enum EmailVerifyState
    {
        Invalid,
        Valid,
        NeedReverify,
    }
}